define(function(){
	//String format function
	//just like c printf method , more likely in c# string format function
	String.prototype.format = function()
	{
		var args = arguments;
		return this.replace(/\{(\d+)\}/g,                
		function(match,index){
			return args[index];
		});
	}

	String.prototype.capitalize = function(){
		return this.charAt(0).toUpperCase() + this.slice(1);
	};
});
